<form id="frmPost" name="frmPost" method="POST" enctype="multipart/form-data">
    <table class="detail_info">
        <tbody>
            <?php if ( $this->error == 1 ) {?>
                <tr>
                    <td>&nbsp;</td>
                    <td class="column_right">
                        <span style="color: red; font-size: 12px; font-weight: bold;">Có lỗi xảy ra, vui lòng thực hiện lại sau.</span>
                    </td>
                </tr>
            <?php }//end if?>
            <tr>
                <td class="column_left">
                    Tiêu đề <span style="color: red;">*</span>
                </td>
                <td class="column_right">
                    <span id="title_err" style="display: none; color: red;"></span>
                    <input type="text" name="txtTitle" id="txtTitle" size="50" tabindex="1" maxlength="200" />
                </td>
            </tr>
            <tr>
                <td class="column_left">
                    Thể loại
                </td>
                <td class="column_right">
                    <select id="CategoryID" style="width: 150px;" name="categoryid" tabindex="2" onchange="changeTypePost(this.value);">
                        <option value="1" selected>Đội bóng</option>
                        <option value="2">Lịch sử euro</option>
                    </select>
                </td>
            </tr>
            <tr>
                <td class="column_left">
                    Hình đại diện
                </td>
                <td class="column_right">
                    <input type="file" name="txtfile" id="txtfile" size="25" tabindex="3" />
                </td>
            </tr>
            <tr class="postteam">
                <td class="column_left">
                    Sân nhà
                </td>
                <td class="column_right">
                    <input type="text" name="txtHome" id="txtHome" size="50" maxlength="100" value="" />
                </td>
            </tr>
            <tr class="postteam">
                <td class="column_left">
                    Huấn luyện viên
                </td>
                <td class="column_right">
                    <input type="text" name="txtCoach" id="txtCoach" size="50" maxlength="100" value="" />
                </td>
            </tr>
            <tr class="postteam">
                <td class="column_left">
                    Giải thưởng
                </td>
                <td class="column_right">
                    <textarea cols="77" rows="5" name="txtAward" id="txtAward"></textarea>
                </td>
            </tr>
            <tr class="postteam">
                <td class="column_left">
                    Thông tin
                </td>
                <td class="column_right">
                    <textarea cols="77" rows="5" name="txtInfo" id="txtInfo"></textarea>
                </td>
            </tr>
            <tr>
                <td class="column_left">
                     Nội dung <span style="color: red;">*</span>
                </td>
                <td class="column_right" style="width: auto!important;">
                    <span id="content_err" style="display: none; color: red;"></span>
                    <textarea cols="25" rows="5" name="ck_content" id="ck_content" tabindex="4"></textarea>
                </td>
            </tr>
            <tr>
                <td class="column_left">
                    Status
                </td>
                <td class="column_right">
                    <select name="status" style="width: 100px;" tabindex="5">
                        <option value="1">Active</option>
                        <option value="2">Inactive</option>
                    </select>
                </td>
            </tr>
        </tbody>
    </table>
    <div class="btn_back">
        <input type="submit" name="submit" value="Đăng bài" tabindex="6" />
        <input type="button" name="cancel" value="Bỏ qua" onclick="window.location='<?php echo BASE_URL_CLUB;?>/admin';" tabindex="7" />
    </div>
</form>

<script type="text/javascript">
var isPostOnAdmin   = 1;

function changeTypePost(value)
{
    if ( value == 1 ) {
        $("tr.postteam").show();
    } else {
        $("tr.postteam").hide();
    }
}
</script>